import request from '@/utils/request'
import type { ApiResponse } from './components/ApiResponse'
import type { GoodDetailType } from './components/goodsType'

// 根据Id获取商品详情
export const getGoodsByIdApi = (id: string) => {
  return request.get<ApiResponse<GoodDetailType>>('/goods', {
    params: { id },
  })
}
